/**
 * @Project RSLsXWG
 * @Author Tran Manh Hung
 * @Email: hungtmit@gmail.com | tmh@xwebgate.com
 * @Copyright © 2011 TMH. All rights reserved
 * @Createdate Apr 30, 2011
 * @Createtime 8:41:11 PM
 */

package com.xwg.msg
{
	import flash.display.Bitmap;
	import flash.display.Loader;
	import flash.events.Event;
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;

	public class Emoticon extends EventDispatcher implements IEventDispatcher
	{
		private var _imagePath:String;

		private var _code:String;

		private var _description:String;

		public function Emoticon(code:String, imagePath:String, description:String, target:IEventDispatcher = null)
		{
			super(target);

			_initData(code, imagePath, description);
		}

		private function _initData(code:String, imagePath:String, description:String):void
		{
			_imagePath = imagePath;
			_code = code;
			_description = description;
		}

		public function get code():String
		{
			return _code;
		}

		public function set code(value:String):void
		{
			_code = value;
		}

		public function get description():String
		{
			return _description;
		}

		public function set description(value:String):void
		{
			_description = value;
		}

		public function get imagePath():String
		{
			return _imagePath;
		}

		public function set imagePath(value:String):void
		{
			_imagePath = value;
		}
	}
}